package com.smart.parking.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.parking.entity.ChargeEntity;
import com.smart.parking.entity.VehicleEntity;
import com.smart.parking.param.AliPay;
import com.smart.parking.utils.PageUtils;


import java.util.Map;

/**
 * 停车收费表
 *
 * @author ciyun
 * @email ciyun@gmail.com
 * @date 2022-10-30 14:12:09
 */
public interface ChargeService extends IService<ChargeEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 新增停车 收费记录
     */
    boolean addCharge(VehicleEntity vehicleEntity);

    /**
     * 计算价格
     */
    AliPay calculationPrice(VehicleEntity vehicleEntity);

//    /**
//     * 更新支付信息 更新为支付成功
//     */
//    void updateChargePlay(Long chargeID);

//    /**
//     * 查询是否支付
//     */
//    boolean selectPayment(Long chargeID);

}

